package com.springsource.a03beanlifecycle;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class TestBeanLifecycle {
    public static void main(String[] args) {
        /**
         1、构造方法
         2、依赖注入
         3、post construct
         4、pre destroy
         **/

        ConfigurableApplicationContext context = SpringApplication.run(TestBeanLifecycle.class, args);
        context.close();
    }
}
